<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStadiumsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('stadiums', function (Blueprint $table) {
            $table->increments('stadium_id');
            $table->tinyInteger('cat_id');
            $table->char('stadiumname',20);
            $table->string('address',50);
            $table->char('phone',12);
            $table->smallinteger('price');
            $table->string('bus',50);
            $table->char('subway',20);
            $table->char('service',20);
            $table->char('park',10);
            $table->string('sale',30);
            $table->string('images',500);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('stadiums');
    }
}
